/**
 * @description 定义样品接口
 */

import { SAMLE_DELETE, SAMPLE_ADD, SAMPLE_LIST, SAMPLE_UPDATE } from "@/config/sample.conf";
import ajax from "./ajax";

export function sampleListApi(params){
    return ajax({
        url:SAMPLE_LIST,
        params,
    })
}

export function sampleUpdateApi(data){
    return ajax({
        url:SAMPLE_UPDATE,
        method:'POST',
        data,
    })
}

export function sampleAddApi(data){
    return ajax({
        url:SAMPLE_ADD,
        method:'PUT',
        data,
    })
}

export function sampleDeleteApi(id){
    return ajax({
        url:SAMLE_DELETE + id,
        method:'DELETE',
    })
}
